package com.spnice.sgsms.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class UserController {
    @GetMapping("/user")
    public String getCurrentUser() {
        String userName = "admin";
        log.info("当前用户名：{}", userName);
        return userName;
    }
}
